package com.info33.platform.common.mvc.service;

import java.util.List;
import java.util.Map;

import org.springframework.jdbc.core.JdbcTemplate;

/**
 * 数据库连接源配置
 * 
 * @author wangjianguo
 *
 */
public interface IJdbcService {

	int update(String sql) throws Exception;

	int insert(String sql) throws Exception;

	int delete(String sql) throws Exception;

	Long insertAndReturnId(String sql);

	String queryString(String sql) throws Exception;

	List<Map<String, Object>> queryList( String sql) throws Exception;

	Map<String, Object> queryMap(String sql) throws Exception;

	JdbcTemplate getDefaultJdbcTemplate();

	Integer queryCount(String sql) throws Exception;
	

	
}
